﻿using System;
using System.Collections.ObjectModel;
namespace Clipper.Model
{
	/// <summary>
	/// SampleInfo:实体类(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public partial class SampleInfo:AbstractModel
	{
		public SampleInfo()
		{}
		#region Model
		private long _sampleid;
		private long _patientid;
        private PatientInfo _patientInfo;
        private byte _sampletype;
        private string _sampleTypName;
		private int? _carrydoctor;
		private string _trier;
		private string _assessor;
		private string _diagnose;
		private string _describe;
		private int _samplestate;
        private string _smpleBarcode;
        private DateTime? _carryDate;
        private DateTime _createTime;
		private string _note;
        private ObservableCollection<DetectItems> _detectItems;
		/// <summary>
		/// 
		/// </summary>
		public long sampleID
		{
			set{ _sampleid=value;}
			get{return _sampleid;}
		}
		/// <summary>
		/// 
		/// </summary>
		public long patientID
		{
			set{ _patientid=value;}
            get
            {
                 return _patientid;
            }
		}

        /// <summary>
        /// 病人信息
        /// </summary>
        public PatientInfo PatientInfo
        {
            set { _patientInfo = value; }
            get 
            {
                if (_patientInfo == null)
                {
                    _patientInfo = new PatientInfo();
                }
                return _patientInfo;
            }
        }

		/// <summary>
		/// 样本类型ID
		/// </summary>
		public byte sampleType
		{
			set{ _sampletype=value;}
			get{return _sampletype;}
		}
        /// <summary>
        /// 样本类型名称
        /// </summary>
        public string SampleTypeName
        {
            get
            {
                return _sampleTypName;
            }
            set
            {
                _sampleTypName = value;
            }
        }
		/// <summary>
		/// 
		/// </summary>
		public int? carryDoctor
		{
			set{ _carrydoctor=value;}
			get{return _carrydoctor;}
		}
        /// <summary>
        /// 送检日期
        /// </summary>
        public DateTime? carryDate
        {
            set { _carryDate = value; }
            get { return _carryDate; }
        }
		/// <summary>
		/// 
		/// </summary>
		public string trier
		{
			set{ _trier=value;}
			get{return _trier;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string assessor
		{
			set{ _assessor=value;}
			get{return _assessor;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string diagnose
		{
			set{ _diagnose=value;}
			get{return _diagnose;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string describe
		{
			set{ _describe=value;}
			get{return _describe;}
		}
		/// <summary>
		/// 
		/// </summary>
		public int SampleState
		{
			set{ _samplestate=value;}
			get{return _samplestate;}
		}
        /// <summary>
        /// 录入时间
        /// </summary>
        public DateTime createTime
        {
            set { _createTime = value;}
            get { return _createTime; }
        }
        /// <summary>
        /// 样本条码
        /// </summary>
        public string sampleBarcode
        {
            set { _smpleBarcode = value; }
            get { return _smpleBarcode; }
        }
		/// <summary>
		/// 
		/// </summary>
		public string note
		{
			set{ _note=value;}
			get{return _note;}
		}
        /// <summary>
        /// 样本的检测项
        /// </summary>
        public ObservableCollection<DetectItems> DetectItems
        {
            get
            {
                return _detectItems;
            }
            set
            {
                _detectItems = value;
            }
        }

		#endregion Model

	}
}

